<html>
<head>
    <title>容器数据类型</title>
    <meta charset="UTF-8"/>
</head>
    <body>
        <h1>Welcome ${user.名字}！其个人信息如下：</h1>
        <!--遍历 map获取基本信息-->
        <#list user?keys as name >
            <p>${name}：${user[name]}</p>
        </#list>

        <pre></pre>

        <!--遍历数组，爱好-->
        <h1>爱好：</h1>
        <#list hobbies as hobby >
            <p>${hobby_index + 1}、${hobby}</p>
        </#list>

        <!--集合遍历，书籍-->
        <h1>书籍：</h1>
        <#list books as book >
            <p>${book_index + 1}：${book.id} -- ${book.name} -- ${book.author}</p>
        </#list>

    </body>
</html>
